/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spatialmarketplace.cem.dao;

import java.util.ArrayList;
import spatialmarketplace.cem.model.CEMNotification;

/**
 *
 * @author Camila
 */
public interface CEMNotificationDao {
    /**
     * Returns a list of maximum 10 most recent notifications relevant to the userId.
     * @param userId
     * @return 
     */
    public ArrayList<CEMNotification> getNotifications(Integer userId);
    
    /**
     * Creates a new notification and saves it to the database with the current date.
     * @param groupId
     * @param typeId
     * @param actionLink 
     */
    public void createNotification(Integer groupId, Integer typeId, String actionLink);
    
    /**
     * Retrieves one notification given its ID.
     * @param notId
     * @return 
     */
    public CEMNotification getNotification(Integer notId);
}
